package com.dd.ljzapplication.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import com.dd.ljzapplication.R;
import com.dd.ljzapplication.view.SingleItem;

import base.BaseUtilActivity;
import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;

/**
 * Created by LiJZ on 2016/10/29.
 * 简程我的界面中，自定义组合控件，设置字体大小
 */

public class EasyTripActivity extends BaseUtilActivity {
	@InjectView(R.id.id1)
	SingleItem id1;
	@InjectView(R.id.id2)
	SingleItem id2;

	@Override
	protected int setLayoutID() {
		return R.layout.activity_easy_trip;
	}

	@Override
	protected void init() {

	}

	@Override
	protected void initActionBar() {

	}

	@Override
	protected void initView() {
		TextView textView = (TextView) findViewById(R.id.tv);
		textView.setTextSize(18);
	}

	@Override
	protected void initEvent() {

	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// TODO: add setContentView(...) invocation
		ButterKnife.inject(this);
	}

	@OnClick({R.id.id1, R.id.id2})
	public void onClick(View view) {
		switch (view.getId()) {
			case R.id.id1:
				Toast.makeText(this,"1111",Toast.LENGTH_SHORT).show();
				break;
			case R.id.id2:
				Toast.makeText(this,"2222",Toast.LENGTH_SHORT).show();
				break;
		}
	}
}
